package com.webinsky.article.domain;

public enum MisRelationshipSyncItem {
	Item(0), Catalog(1), Category(2), Tag(3), RelateVideo(4);
	
	private int syncItem;
	
	private MisRelationshipSyncItem(int syncItem){
		this.syncItem = syncItem;
	}
	
	public int syncItem(){
		return syncItem;
	}
	
	public static MisRelationshipSyncItem parse(int syncItem){
		for ( MisRelationshipSyncItem missyncItem : MisRelationshipSyncItem.values() ){
			if ( missyncItem.syncItem() == syncItem ){
				return missyncItem;
			}
		}
		return null;
	}
}
